package game.commands.app
{
	import flash.display.Sprite;
	
	import game.manager.LayerManager;
	import game.view.loading.LoadingMediator;
	import game.view.miui.MainUIMediator;
	import game.view.scene.SceneMediator;
	import game.view.test.TestMediator;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	import utiles.MouseCursorHelper;
	import utiles.StageProxy;

	public class PrepareViewCommand extends SimpleCommand
	{
		override public function execute(notification:INotification):void
		{
			LayerManager.init(StageProxy.root);
			MouseCursorHelper.instance.layer = LayerManager.mouseLayer;
			
			// register...
			facade.registerMediator(new MainUIMediator());
			facade.registerMediator(new SceneMediator());
			facade.registerMediator(new LoadingMediator());
		}
	}
}